package Offer.offer2020;

/**
 * 单例模式
 * 静态内部类
 */
public class Test02b {

    private static class InnerClass {
        private static final Test02b instance = new Test02b();
    }

    //构造方法私有化
    private Test02b() {

    }

    public static Test02b getInstance() {
        return InnerClass.instance;
    }
}
